<!DOCTYPE html>
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
        <script type="text/javascript" src='./Js/jquery-1.7.2.min.js'></script>
        <style>
            .a1{
                height: 200px;
                width: 200px;
                background-color: red;
            }
            .ccc{
                height: 50px;
                width: 50px;
                background-color: blue;
            }
        </style>
        <script>
        $(function(){ 
            $('.ccc').click(function(){
               alert($('#username').val()); 
               $(this).parents(".a1").fadeOut("slow");
           });
 
        });
        
        </script>
    </head>
    <body>
        <div class="a1">
            <div class="ccc">1</div>
        </div>
        
        <div class="a1">
            <div class="ccc">2</div>
        </div>
        
        <div class="a1">
            <div class="ccc">3</div>
        </div>
      
        <input name="username" id="username" value="abcd" />
    </body>
</html>
